From 7a23fefc4ed02069ef915d9c97b93a6f1015af80 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Sat, 8 Dec 2018 10:43:17 +0100 Subject: [PATCH] Reduce parallel on mips* as they go OOM --- debian/rules | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index f99cfd30..87770831 100755 --- a/debian/rules +++ b/debian/rules @@ -13,8 +13,11 @@ CXXFLAGS+=$(CPPFLAGS) BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON) -# Multiarch. -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) + PARALLEL=--max-parallel=2 +else + PARALLEL= +endif .PHONY: override_dh_auto_configure \ override_dh_install \ @@ -89,4 +92,4 @@ override_dh_installchangelogs: %: - dh $@ --builddirectory=build + dh $@ $(PARALLEL) --builddirectory=build -- 2.30.2